package com.xie.service;

import com.xie.dao.UserMapper;
import com.xie.pojo.User;

public class UserServiceImpl implements UserService {

    private UserMapper userMapper;
    public void setUserMapper(UserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public User loginUser(User user) {
        return userMapper.loginUser(user);
    }

    public int addUser(User user) {
        return userMapper.addUser(user);
    }
}
